export interface AnyObj {
	[propName: string]: any;
}

export interface ChoiceDtos {
    item: string;
    itemContent: string;
}

// 1 summary填空, 2 choice选择题, 3 problems计算题，4 calculation应用题，5 trueOrFalse判断题
export type TopicTypeNumber = 1 | 2 | 3 | 4 | 5;

export interface QuestionItem {
    id: number;
    categoryName: string;
    categoryId: number;
    content: string;
    sort: any;
    choiceDtos?: ChoiceDtos[];
    video: string;
    videoQrCode: string;
    answers: string[] | null;
    imgs: string[] | null;
    difficulty: number;
    questionsType: TopicTypeNumber; 
	isCollect?: 0 | 1;
}